package org.zcl.sqlserver.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "sync-coupon")
public class SyncCouponProperties {

    private List<CouponConfig> couponConfigs;

    public List<CouponConfig> getCouponConfigs() {
        return couponConfigs;
    }

    public void setCouponConfigs(List<CouponConfig> couponConfigs) {
        this.couponConfigs = couponConfigs;
    }

    public static class CouponConfig {
        private String brand;
        private String url;
        private String schemaName;

        public String getBrand() {
            return brand;
        }

        public void setBrand(String brand) {
            this.brand = brand;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getSchemaName() {
            return schemaName;
        }

        public void setSchemaName(String schemaName) {
            this.schemaName = schemaName;
        }
    }
}

